import glob
import random
import string

list_length_ratio = [str(float(i)/50) for i in xrange(1,51)]
#list_ratio_loc = [str(float(i)/50) for i in xrange(1,51)]
#list_length_ratio = [str(float(i)/20) for i in xrange(1,21)]
#list_ratio_loc = [str(float(i)/20) for i in xrange(1,21)]
#list_length_ratio = ['0.8']
list_ratio_loc = ['0.8']
#list_length_ratio = [str(i) for i in xrange(0,1)]
#list_length_ratio = [str(0.8)]
#list_ratio_loc = [str(0.76)]
#string_info = range(100000,10000001,100000)
#string_info = [str(i) for i in xrange(100,201,100)]
#dir_out = ["out_test"]
annotations = ["ida.json"]
path_corpus = ["corpus_ida"]
#pwd = "/home/glejeune/Documents/SVN/scrapping_tools/python-boilerpipe-master/"
pwd = "/home/glejeune/Documents/SVN/py-dimeco/dimeco/"
#subcorpus = ['corpus_detoures_boiler/corpus_japtal/','corpus_detoures_bromitov1/corpus_japtal/', 'corpus_detoures_bromitov2/corpus_japtal/', 'corpus_detoures_hyb_boil_bromitov1/corpus_japtal/','corpus_detoures_hyb_boil_bromitov2/corpus_detoures_boiler/corpus_japtal/', 'corpus_detoures_hyb_boil_ncleaner/', 'corpus_detoures_hyb_bro-boiler/corpus_detoures_bromito/corpus_japtal/', 'corpus_detoures_hyb_brom_ncleaner/', 'corpus_detoures_ncleaner/']
#subcorpus = [ 'corpus_detoures_hyb_bro-boiler/corpus_detoures_bromito/corpus_japtal/']
#for corpus in subcorpus:
#  path_corpus.append(pwd+corpus)
list_lg = ["cn,en,el,pl,ru","cn","en","el","pl","ru","multi"]
list_lg = ["cn,en,el,pl,ru","multi"]
#list_lg = ["cn","en","el","pl","ru"]
#list_lg = ["cn,en,el,pl,ru"]
#list_lg = ["multi"]
#list_lg = ["en"]
data = ["data"]
# -a  -c daniel/files -l el,pl,ru

taille_art = ['5 -g 7','5 -g 1000','1000 -g 7']
taille_art = ['5 -g 7']
all_experiments = {
  "xp_mu": (('-a',), annotations,
            ('-c',), path_corpus,
            ('-l',), list_lg,
            ('-d',), data,
            ('-r',), list_length_ratio,
            ('-x',), list_ratio_loc,
            ('-p',), taille_art)
}

def print_all_experiments(): 
  all_xps = []
  cptout = 0
  for name, args in all_experiments.iteritems():
#    xps = [["../../pypy-1.8-64/bin/pypy stat_random_motifs_atomic.py"]]
    xps = [["/home/glejeune/Documents/SVN/pypy-1.8/bin/pypy run_dimeco2.py"]]
    for lst in args:
      new_xps = []
      for xp in xps:
        for a in lst:
          new_xps.append(xp + [a])
      xps = new_xps
    all_xps += xps

  for i,xp in enumerate(all_xps):
#    xp = xp[0] + ' -o %04d.js '%(i) + " ".join(xp[1:])
    print " ".join(xp)
 
print_all_experiments()
